import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user.js'
Vue.use(Vuex);




const store = new Vuex.Store({
  state: {
    userId: null
  },
  mutations: {
    setUserId(state, userId) {
      state.userId = userId;
    }
  },
  actions: {
    updateUserId({ commit }, userId) {
      commit('setUserId', userId);
    }
  }
});

export default store;